﻿using System;
using System.Security.Cryptography;
using System.Text;

namespace JsPark.AES
{
    class Program
    {
        static void Main(string[] args)
        {

            


            string plain = "Hello world!!!";
            AES aes = new AES();
            byte[] bytes = aes.encryption(plain);
            string str = aes.decryption(bytes);

            Console.WriteLine("plain text : " + plain);
            Console.WriteLine("key bytes : " + aes.getKeyBytesTostring());
            Console.WriteLine("key bits : " + aes.getKeyBitsTostring());
            Console.WriteLine("length = " + aes.getKeyBitsTostring().Length);
            Console.WriteLine("decrypt text : " + str);
            
            
        }
    }
}
